//
//  UITableViewCell+Ext.swift
//  WBSwift
//
//  Created by 贺瑞 on 2017/8/11.
//  Copyright © 2017年 herui. All rights reserved.
//

import UIKit


extension UITableViewCell {

    static var reuseID: String {
        let className = NSStringFromClass(classForCoder())
        return className.components(separatedBy: ".").last ?? "UITableViewCell"
    }
    static var nib: UINib {
        return UINib(nibName: reuseID, bundle: nil)
    }
}

extension UICollectionViewCell {
    
    static var reuseID: String {
        let className = NSStringFromClass(classForCoder())
        return className.components(separatedBy: ".").last ?? "UITableViewCell"
    }
    static var nib: UINib {
        return UINib(nibName: reuseID, bundle: nil)
    }
}
